package com.eyas.business.service.appointmentinfo;

import com.eyas.business.model.pojo.appointmentinfo.QueryParamDTO;
import com.eyas.business.model.pojo.appointmentinfo.QueryResultDTO;
import com.eyas.business.model.pojo.appointmentinfo.YKParamDTO;
import com.eyas.business.model.pojo.webchat.AppointMentInfoDTO;
import com.eyas.core.model.page.PageResult;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @Auther: 王龙龙
 * @Date: 2019/3/16 17:17
 * @Description:
 */
public interface AppointmentInfoService {
    /**
     * 查询会员的约课历史记录
     * @param dto
     * @param page
     * @param limit
     * @return
     */
    public PageResult<QueryResultDTO> queryAppointmentInfo(QueryParamDTO dto, int page, int limit);

    /**
     * 保存约课信息
     * @param session
     */
    public void saveAppointmentInfo(YKParamDTO ykParamDTO, HttpSession session);

    /**
     * 约课状态确认
     * @param dto
     * @param session
     */
    public void updateAppointmentInfo(QueryParamDTO dto, HttpSession session);

    /**
     * 会员约课（APP端）
     */
    public void saveAppointmentInfoPublic(YKParamDTO ykParamDTO);

    /**
     *
     * @param userid
     * @return
     */
    public List<QueryResultDTO> queryAppointmentInfoPublic(Integer userid);

    /**
     * 查询某节课的上课会员信息
     * @param dto
     * @param i
     * @param limit
     * @return
     */
    public PageResult<QueryResultDTO> queryAppointmentStatus(QueryParamDTO dto, int page, int limit);

    /**
     * 会员取消自己的约课
     * @param paramdto
     */
    public void updateAppointmentInfoPublic(AppointMentInfoDTO paramdto);

}
